package entiy;

import java.util.Date;

public class Question {
    private int id;
    private String title;
    private String description;
    private Date createtime;
    private int answercount;
private int answercount;
    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public int getAnswercount() {
        return answercount;
    }

    public void setAnswercount(int answercount) {
        this.answercount = answercount;
    }

    public Question(int id, String title, String description, Date createtime, int answercount) {
        this.id = id;
        this.title = title;
        this.description = description;
        this.createtime = createtime;
        this.answercount = answercount;
    }

    public Question() {
    }

    public Question(String title, String description, Date createtime, int answercount) {
        this.title = title;
        this.description = description;
        this.createtime = createtime;
        this.answercount = answercount;
    }
}

